//2009/07/30 19:10:01
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>

using namespace std;

class Quipu
{
public:
    int readKnots(string knots)
    {
		int score =0;
		for(int i=0; i<knots.size() - 1; i++)
		{
			if(knots[i] == '-')
			{
				score = score * 10;
			}
			if(knots[i] == 'X')
			{
				score ++;
			}
		}
		return score;
    }
};
